<img alt="thumb"
  src="<?php printf(sfConfig::get('app_path_photo_thumb'), $photo->getThumb()) ?>" />